package com.YxyBackMange.Entity.App;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.hibernate.validator.constraints.Length;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Set;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 实体类AppBanner
 * 数据表app_tb_banner
 * 首页banner图表
 * 2017-12-3 3:47:30
 * @author Administrator
 *
 */
@Table(name = "app_tb_banner")
public class AppBanner  implements Serializable {

		//
	@Id
	@GeneratedValue(generator = "JDBC")


	private Integer id;
		//标题


	private String title;
		//URL


	private String href;
		//图片


	private String imgAddress;
		//创建时间


	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;


	public AppBanner(){

	}
	public AppBanner(Integer id){
		this.id=id;
	}
	public void setId(Integer id){
		this.id=id;
	}

	public Integer getId(){
		return this.id;
	}
	public void setTitle(String title){
		this.title=title;
	}

	public String getTitle(){
		return this.title;
	}
	public void setHref(String href){
		this.href=href;
	}

	public String getHref(){
		return this.href;
	}
	public void setImgAddress(String imgAddress){
		this.imgAddress=imgAddress;
	}

	public String getImgAddress(){
		return this.imgAddress;
	}
	public void setCreateTime(Date createTime){
		this.createTime=createTime;
	}

	public Date getCreateTime(){
		return this.createTime;
	}


}
